home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: Getting my facet from within ::DoCharKey
- Sent: 6/11/96 12:01 PM
- Received: 6/11/96 12:11 PM
- From: Laurent Delamare, laurentd@apple.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- >I need to get my facet from within the ::DoCharKey method of my View so
- >that I can set up a "FW_CViewContext" for rendering.
- >
- >What's the best way to do it?
- >
- >Is there an easier way than grabbing my frame and iterating to it's first
- >facet?
-
- In theory you could use frame->GetActiveFacet(ev) which returns the
- "active facet", i.e. the last facet that handled a mouse or activate
- event.
- However every time you need to draw something in your frame you should
- iterate through all its facets to be sure that it will be correct in all
- situations (you never know what kind of container will split your part
- into multiple facets, like ODF Embed for instance).
-
- ______________________________________________________________________
- Laurent Delamare laurentd@apple.com
- ODF Team http://www.devtools.apple.com/odf/
- Apple Computer, Inc. http://www.opendoc.apple.com/
-